package com.ctshk.rpc.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 数据权限
 * </p>
 *
 * @author 谢诗宏
 * @since 2020-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_permission_data")
@ApiModel(value="SysPermissionData对象", description="数据权限")
public class SysPermissionData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "功能权限ID")
    private Long permissionId;

    @ApiModelProperty(value = "权限类型	1 部门	2 人员")
    private Integer type;

    @ApiModelProperty(value = "关联ID(用户id或部门id，根据type变动)")
    private Long dataId;

    private Long createId;

    private Long modifiedId;

}
